/**
 * Create required DOM elements and listeners.
 */
function prepareAppDOM() {
  var body = $('body');
  //body.html('Yo! This is the mafia app. We own the world!');
  
}

function getMainVideo() {
	var id = gapi.hangout.getParticipantId();
	console.log('participant id is ' + id);
	//gapi.hangout.setDisplayedParticipant(id);
	gapi.hangout.hideApp();
}

/* Anonymous function that will get us going */
(function() {
  if (gapi && gapi.hangout) {

    var initHangout = function(apiInitEvent) {
      if (apiInitEvent.isApiReady) {
        prepareAppDOM();
        gapi.hangout.onApiReady.remove(initHangout);
      }
    };

    gapi.hangout.onApiReady.add(initHangout);
  }
})();
